<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div class="header" id="header_id">
	<div class="header-top">
		<div class="wrap">
			<div class="logo">
				<a href="index.html"><img
					src="<%=request.getContextPath()%>/resources/images/front/logo.png"
					alt=""></a>
			</div>
			<div class="search_box">
				<form>
					<input type="text" value="Search" onfocus="this.value = '';"
						onblur="if (this.value == '') {this.value = 'Search';}"><input
						type="submit" value="">
				</form>
			</div>
			<div class="clear"></div>
		</div>
	</div>
	<div class="header-bottom">
		<div class="wrap">
			<div id='cssmenu'>
				<ul>
					<li class='active'><a href='index.html'><span>Home</span></a></li>
					<li><a href='about.html'><span>About</span></a></li>
					<li><a
						href='<%=request.getContextPath()%>/lstcourses/allcourses'><span>Courses</span></a></li>
					<li><a href='blog.html'><span>Test</span></a></li>
					<li><a href='contact.html'><span>Contact</span></a></li>
                     <c:if test="${sessionScope.userFLogin.typeUser == 'teacher'}">
                          <li class='has-sub'><a href='services.html'><span>Management</span></a>
								<ul>
									<li class='has-sub'><a href='<%=request.getContextPath()%>/courses_management'><span>Courses</span></a></li>
									<li class='has-sub'><a href='services.html'><span>Statistic</span></a></li>
								</ul>
						   </li>
                     </c:if>
					<c:choose>
						<c:when test="${not empty sessionScope.userFLogin}">
							

							<li class='has-sub'><a href='services.html'><span>Account</span></a>
								<ul>
									<li class='has-sub'><a href='services.html'><span>Profile</span></a></li>
									<li class='has-sub'><a href='services.html'><span>Settings</span></a></li>
									<li class='has-sub'><a href='<%=request.getContextPath()%>/lstcourses/flogout'><span>Log out</span></a></li>
								</ul>
						   </li>

						</c:when>
						<c:otherwise>
							<p>
							<li><a href='<%=request.getContextPath()%>/lstcourses/login'><span>Log
										In</span></a></li>
							</p>
							<p>
							<li class='last'><a
								href='<%=request.getContextPath()%>/lstcourses/register'><span>Sign
										Up</span></a></li>
							</p>
						</c:otherwise>
					</c:choose>


					<div class="clear"></div>

				</ul>

			</div>
		</div>
	</div>
</div>